-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Cookbook] add cookbook article for the server:run command #4000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
xabbuh
commented
Jul 6, 2014
Q | A |
---|---|
Doc fix? | no |
New docs? | yes (symfony/symfony#3465) |
Applies to | all |
Fixed tickets |
How to Use PHP's built-in Web Server | ||
==================================== | ||
|
||
Since PHP 5.4 the CLI SAPI comes with a `built-in web server`. It can be used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing underscore after built-in web server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, great catch!
I would like to see references to this article in places where we talk about the |
Actually, there's just one part in the docs that mentions the built-in web server at the moment (the quick tour that you mentioned). But we'll have to keep track of this if we start to tend to focus more on the built-in server in the future. |
|
||
The server then binds on port 8000 on the loopback device and responds to | ||
incoming HTTP requests until the execution is terminated (this is usually | ||
done pressing Ctrl and C). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about this:
This starts a server at `localhost:8000` that executes your Symfony application. The
command will wait and respond to incoming HTTP requests until you terminate it (this
is usually done by pressing Ctrl and C).
I'm trying to keep the language a little simpler, but obviously, I want to remain accurate.
However, I addressed all your other suggestions. Thanks for these nice additions. |
…and (xabbuh) This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook] add cookbook article for the server:run command | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes (symfony/symfony#3465) | Applies to | all | Fixed tickets | Commits ------- 57f467a add cookbook article for the server:run command
…ver in VMs (xabbuh) This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Web Server] add sidebar for the built-in server in VMs | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4149 As discussed with @weaverryan in #4000, this pull request adds a sidebar which explains how to easily use the built-in web server in virtual machines to make it accessible from the host machine. Commits ------- 28645d9 add sidebar for the built-in server in VMs